package com.airshare;

// A message exchanged between file server and client
public class FSMessage implements java.io.Serializable, FSConstants {

	private static final long serialVersionUID = 1L;
	public int    _messageType;
	public String _srcUser;
	public String _dstUser;

	public String _fileName;
	public long   _fileSize;
	public int   _indexSize;

	public FSMessage() {
		_messageType = MSG_INVAL;
		_srcUser = "unknown";
		_dstUser = "unknown";
		_fileName = "nofile";
		_fileSize = 0L;
		_indexSize = 0;
	}
	
	public String toString() {
		return String.valueOf(_messageType) + " " + _fileName;
	}
}
